//李伊帆
import My from './components/Lyf/My'
import VipPage from './components/Lyf/VipPage'
import HeartPage from './components/Lyf/HeartPage'
import Shopgz from './components/Lyf/Shopgz'
import Quan from './components/Lyf/Quan'
import Guang from './components/Lyf/Guang'
import VipVR from './components/Lyf/VipVR'
// import Hua from './components/Lyf/Hua'
// 刘家兴
import Homepage from './components/ljx/Homepage'
import Xiang from './components/ljx/Xiang'
import Liao from './components/ljx/Liao'
import Ltian from './components/ljx/Ltian'
import Tliao from './components/ljx/Tliao'
import Xijie from './components/ljx/Xijie'
import TransferPage from './components/ljx/TransferPage'


// 李键良
import Register from "./components/ljl/register/register.jsx"
import Login from "./components/ljl/login/login.jsx"
import Facelogin from "./components/ljl/login/faceLogin.jsx"




import DiscoverPage from './components/Zzy/DiscoverPage'
import VideoDetail from './components/Zzy/VideoDetail'
import ShortVideoPage from './components/Zzy/ShortVideoPage'
import LivesPage from './components/Zzy/LivesPage'
import VideosPage from './components/Zzy/VideosPage'
import SearchPage from './components/Zzy/SearchPage'

// wm
import Operation from './components/wm/Operation'
import Support from './components/wm/support'

                    import {BrowserRouter, Routes, Route, Navigate} from "react-router-dom";
                    import LiveRoom from './components/Zzy/LiveRoom';
                    import {FollowProvider} from './context/FollowContext.jsx';

                    export default function App1() {
    return (
                    <FollowProvider>
                        <BrowserRouter>
                            <Routes>
                                <Route path="/" element={<Navigate to="/login" replace />} />
                                <Route path="/login" element={<Login />} />
                                <Route path="/register" element={<Register />} />
                           
                                <Route path='/guang' element={<Guang />}></Route>


                                {/* 刘家兴 */}
                                <Route path="/homepage" element={<Homepage />} />
                                <Route path="/xiang" element={<Xiang />} />
                                <Route path="/liao" element={<Liao />} />
                                <Route path='/ltian' element={<Ltian />}></Route>
                                <Route path='/tliao' element={<Tliao />}></Route>
                                <Route path='/xijie' element={<Xijie />}></Route>
                                <Route path='/transfer' element={<TransferPage />} />
                                <Route path='/ttransfer' element={<TransferPage />} />
                                <Route path='/vipvr' element={<VipVR />} />
                           



            
                                {/* <Route path="/hua" element={<Hua />} /> */}
                                <Route path="/my" element={<My />} />
                                <Route path="/heartpage" element={<HeartPage />} />
                                <Route path="/quan" element={<Quan />} />
                                <Route path="/vippage" element={<VipPage />} />
                                <Route path="/vipvr" element={<VipVR />} />
                                <Route path="/shopgz" element={<Shopgz />} />
                                <Route path="/discover" element={<DiscoverPage />} />
                                <Route path="/shorts" element={<ShortVideoPage />} />
                                <Route path="/video/:id" element={<VideoDetail />} />
                                <Route path="/live/:id" element={<LiveRoom />} />
                                <Route path="/lives" element={<LivesPage />} />
                                <Route path="/videos" element={<VideosPage />} />
                                <Route path="/search" element={<SearchPage />} />
                                <Route path="/operation" element={<Operation />} />
                                <Route path="/support" element={<Support />} />
                                <Route path='/facelogin' element={<Facelogin />}></Route>
                            </Routes>
                        </BrowserRouter>
                    </FollowProvider>
                    )
}